<#include "common/nolayout.ftl"/>
<@html js_=['user/info.js'] css_=['user/public.css']>

<div class="childrenBody">
    <form class="layui-form" id="infoForm" action="${root}/m/info" method="post">
        <input type="hidden" name="id" value="${m.id}"/>
        <input type="hidden" name="headimg" id="headimg" value="${m.headimg}"/>
        <br>
        <div class="layui-form-item layui-row layui-col-xs12">
            <label class="layui-form-label">头像</label>
            <div class="layui-upload-list thumbBox mag0 magt3" style="border:1px solid #FFFFFF">
                <img class="layui-upload-img thumbImg" src="${m.headimg}">
            </div>
        </div>
        <div class="layui-form-item layui-row layui-col-xs12">
            <label class="layui-form-label">昵称</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input" placeholder="请输入昵称"
                       maxlength="32" name="nickname" value="${m.nickname!''}"/>
            </div>
        </div>
        <div class="layui-form-item layui-row layui-col-xs12">
            <label class="layui-form-label">公司</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input " placeholder="请输入公司名称"
                       maxlength="64" name="company" value="${m.company!''}"/>
            </div>
        </div>
        <div class="layui-form-item layui-row layui-col-xs12">
            <label class="layui-form-label">职业</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input " placeholder="请输入职业"
                       maxlength="64" name="job" value="${m.job!''}"/>
            </div>
        </div>
        <div class="layui-form-item layui-row layui-col-xs12">
            <label class="layui-form-label">QQ</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input " placeholder="请输入QQ"
                       maxlength="12" name="qq" value="${m.qq!''}"/>
            </div>
        </div>

        <div class="layui-form-item layui-row layui-col-xs12">
            <label class="layui-form-label">微信</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input " placeholder="请输入微信号"
                       maxlength="32" name="wx" value="${m.wx!''}"/>
            </div>
        </div>
        <div class="layui-form-item layui-row layui-col-xs12">
            <label class="layui-form-label">邮箱</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input userEmail" lay-verify="email" placeholder="请输入邮箱"
                       maxlength="64" value="${m.email}" readonly/>
            </div>
        </div>
        <div class=" layui-col-md4 layui-col-xs12">
            <label class="layui-form-label">性别</label>
            <div class="layui-input-block userSex" name="sex" >
                <input type="radio" name="sex" value="1" title="男" <#if m.sex==1>checked</#if>>
                <input type="radio" name="sex" value="2" title="女" <#if m.sex==2>checked</#if>>
                <input type="radio" name="sex" value="0" title="保密" <#if m.sex==0>checked</#if>>
            </div>
        </div>
        <div class="layui-form-item layui-row layui-col-xs12">
            <label class="layui-form-label">自我简介</label>
            <div class="layui-input-block">
                <textarea placeholder="请输入自我简介" class="layui-textarea userDesc" maxlength="50" name="selfInfo" >${m.selfInfo!''}</textarea>
            </div>
        </div>
        <div class="layui-form-item layui-row layui-col-xs12">
            <div class="layui-input-block">
                <button class="layui-btn layui-btn-sm" lay-submit="" lay-filter="saveInfo">更新信息</button>
            </div>
        </div>
    </form>
</div>
</@html>